package com.zmn.oms.common.constant;

/**
 * 微信二维码常量相关
 * @author: LuJia
 * @version: v1.0
 * @since: 2019/11/24 15:17
 **/
public class WechatQrConststs {

    /**
     * 工程师收款金额支付
     */
    public final static int QR_TYPE_MASTER_AMOUNT_PAY = 100;

    /**
     * 工程师上门 定金支付
     */
    public final static int QR_TYPE_MASTER_DEPOSIT_AMOUNT_PAY = 101;

    /**
     * 电子保修卡
     */
    public final static int QR_TYPE_MASTER_WARRANTY = 200;

    /**
     * 工程师上门
     */
    public final static int QR_TYPE_MASTER_VISIT = 300;

    /**
     * 用户关注微信公众号
     */
    public final static int QR_TYPE_USER_ATTENTION = 400;

    /**
     * 二维码扫码名称
     *
     * @param qrCodeType
     * @return
     */
    public static String getQrCodeTypeName(Integer qrCodeType) {
        switch (qrCodeType) {
            case QR_TYPE_MASTER_AMOUNT_PAY:
                return "工程师收款金额支付";
            case QR_TYPE_MASTER_DEPOSIT_AMOUNT_PAY:
                return "工程师上门定金支付";
            case QR_TYPE_MASTER_WARRANTY:
                return "电子保修卡";
            case QR_TYPE_MASTER_VISIT:
                return "工程师上门";
            case QR_TYPE_USER_ATTENTION:
                return "用户关注微信公众号";
            default:
                return "未知";
        }
    }

}
